/*
    XTU OJ: 1475
    by: fifth_light
*/

#include <stdio.h>
#include <math.h>
#include <limits.h>

int main() {
    int n;
    scanf("%d", &n);
    for (int i = 0; i < n; i++) {
        int t;
        scanf("%d", &t);
        double min_r = 0, min_y = 0;
        int has_r = 0, has_y = 0;
        int r_count = 0, y_count = 0;
        double distances_r[32], distances_y[32];
        for (int j = 0; j < t; j++) {
            char color;
            int x, y;
            scanf(" %c%d%d", &color, &x, &y);
            double distance = ((double)x) * ((double)x) + ((double)y) * ((double)y);
            if (color == 'R') {
                if (has_r == 0) {
                    min_r = distance;
                    has_r = 1;
                } else if (distance < min_r) {
                    min_r = distance;
                }
                distances_r[r_count++] = distance;
                continue;
            } else if (color == 'Y') {
                if (has_y == 0) {
                    min_y = distance;
                    has_y = 1;
                } else if (distance < min_y) {
                    min_y = distance;
                }
                distances_y[y_count++] = distance;
                continue;
            } else {
                return -1;
            }
        }
        int score_r = 0, score_y = 0;
        for (int i = 0; i < r_count; i++) {
            if (distances_r[i] < min_y) {
                score_r++;
            }
        }
        for (int i = 0; i < y_count; i++) {
            if (distances_y[i] < min_r) {
                score_y++;
            }
        }
        if (min_r <= min_y) {
            printf("Win %d\n", score_r - score_y);
        } else {
            printf("Lose %d\n", score_y - score_r);
        }
    }
    return 0;
}
